Notice: This software is copyrighted by Stephen Johnson. You may freeely distribute this software as long as you do not charge for it and as long as this notice accompanies the Texture Map Cube.PPC and Texture Map Cube.68K files. This software is distributed as is and is not supported. It has not been tested under rigorous conditions. I've run it on a Quadra 840AV and a Power Macintosh 8100/80AV without any problems.
More legalese: Stephen Johnson does not endorse, warrant, guarantee, or make any representations, express or implied, with respect to this software, its quality, performance, merchantability, or fitness for a particular purpose. In no event will he be liable for direct, indirect, special, incidental, or consequential damages resulting from the use of this software.
This program uses a fast texture mapping algorithm to get QuickTime movies and Video-In onto a cube. The video source is displayed on the 6 faces of the cube in real-time while performing rotatation. There are two versions of this program: a 68k version and a PowerPC™ version. This program demonstrates the Power Macintosh's awesome ability to perform real-time texture mapping while transforming 3D geometry. (The 68k version of the program is included for performance comparisons).
Here are some notes on this demo:
• for best results set your monitor to 16-bits per pixel
• use the mouse button to rotate the cube to a desired viewing angle
• use the mouse button in combination with command for x axis rotation
• use the mouse button in combination with option for y axis rotation
• use the mouse button in combination with control for z axis rotation
• use the "Open" option to load and play a QuickTime movie from disk
• if there is a video digitizer present then choose the Play Video In to get video-in on the cube faces
• the "Commands" menu allows for auto rotation of the cube
• the "Commands" menu allows the user to switch between displaying the movie or video-in
• use "Video Settings" to change the video digitizer parameters
• the "Commands" menu allows for square pixels
• the "Commands" menu contains a "Loop" option which can be used to play the QuickTime movie forever
• the "Front" option returns the cube to the front face position
• the "Spin Around" option rotates the cube in an interesting manner with a little more constraint than the auto rotate option
• try "Bug Eye Mode" just for fun
• the "Sound" menu allows for control of sound volume; turn sound off for higher frame rates
Comments? I can be reached at stephen.j@applelink.apple.com.